<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>角色管理</title>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="<%=basePath%>ui/css/right.css">
</head>

<body>
<div id="all">
		<div id="main">
			<div class="pageColumn">
				<div class="add_div">
					<%@ include file="/common/nav.jsp"%>
						<span style="float: right;padding-right: 10px"><button onclick="javascript:window.location.href='${basePath}role/toAddRole/${porCode}.html'" class="add_btn">新 增</button></span>
				</div>
				<table>
					<thead>
						<tr>
							<th>编号</th>
					<th>角色名称</th>
					<th>备注</th>
					<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${roles }" var="role" varStatus="i">
							<tr>
								<td>${i.index+1 }</td>
								<td>${role.roleName }</td>
						        <td>${role.note }</td>
								<td><a href="${basePath }role/toEditRole/${porCode}.html?id=${role.id}"><img width="16" height="16" src="<%=basePath %>image/frame/edit2.png" title="修改" ></a>&#12288;
									<a href="${basePath }role/toRightSet/${porCode}.html?id=${role.id}" ><img width="16" height="16" src="<%=basePath %>image/frame/settings.gif" title="权限设置"></a></td>
							</tr>
						</c:forEach>
						<tr class="">
							<td class="checkBox" colspan="7"
								style="text-align:left; padding-left:12px;">	
							</td>
						</tr>

					</tbody>
				</table>
			</div>
		</div>
	</div>
	<%-- <div align="center" id="div">
			<div style="margin-bottom:10px; width:90%;font-size: 12px" align="left">
				<a href="toAddRole.html">添加角色 </a>
			</div>

			<table width="99%" border="0" align="center" cellpadding="3"
				cellspacing="1" class="table_style">
					<tr>
					<th>编号</th>
					<th>角色名称</th>
					<th>备注</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${roles }" var="role" varStatus="i">
					<tr>
						<td align="right">${i.index+1 }</td>
						<td>${role.roleName }</td>
						<td>${role.note }</td>
						<td nowrap="nowrap"><a href="toEditRole.html?id=${role.id}">编辑</a>
							<a href="toRightSet.html?id=${role.id}">角色权限</a></td>
					</tr>
				</c:forEach>
			</table> --%>
</body>
</html>
